package com.huanying.goodjob.lottery;

import java.util.List;
import java.util.Map;

import com.huanying.framework.PageBean;
import com.huanying.goodjob.prize_chance.Prize_chance;

public interface LotteryService {
	public void add_lottery(Lottery lottery) throws Exception;//添加
	
	public void update_lottery(Lottery lottery) throws Exception;
	
	public void delete_lottery(int id) throws Exception;
	
	public Lottery get_lottery(int id) throws Exception;
	
	public PageBean search_lottery(Map<String,Object> map, int pageSize, int page)throws Exception;

	public void update_lotterystatus(int id,int status) throws Exception;
 
	public Prize_chance check_chance(int user_id)throws Exception;
	
	public List<Object> front_get_lotterys(int user_id)throws Exception;
}
